home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCGUIA 111
/
PC Guia 111.iso
/
Software
/
Utils
/
NetObjects Fusion 7.0
/
NOF7Trial.exe
/
data1.cab
/
Fsi_-_English
/
SiteWizard
/
verticles.js
< prev
Wrap
Text File
|
2002-06-12
|
5KB
|
54 lines
// Global Variables
BType = 0;
XChoice = 0;
Ximg = "";
arrowon = new Image;
arrowon.src = "images/on.gif";
arrowoff = new Image;
arrowoff.src = "images/off.gif";
//Site Type Selection
function img_act(num) {
imgName = "arrow" + num;
imgOn = eval("arrowon.src");
document [imgName].src = imgOn;
}
function img_inact(num) {
imgName = "arrow" + num;
imgOff = eval("arrowoff.src");
document [imgName].src = imgOff;
}
function setBusiness(num) {
BType = num;
}
function setRight(num) {
parent.right.location = "vert_right.html?x='+num+'";
}
function menuBar(choicename,choicenumber) {
arrownumber = "arrow" + choicenumber;
if (document.all) {document.write('<TABLE background="images/bg_trans.gif" cellpadding=0 cellspacing=0 border=0><TR><td width=10><img src="images/bg_trans.gif" height=1 width=10></td><TD><img src="images/off.gif" name="'+arrownumber+'" width=10 height=10></TD><TD ONCLICK="if (BType != '+choicenumber+' && BType != 0) {img_inact(BType)}; setBusiness('+choicenumber+'); img_act('+choicenumber+')" onmouseover="if (BType == 0) {img_act('+choicenumber+')}" onmouseout="if (BType != '+choicenumber+'){img_inact('+choicenumber+')}"><span class=businesstypename><a href="vert_right.html?x='+choicenumber+'" target="right">'+choicename+'</A><BR></TD></TR></TABLE>')}
else if (document.layers){document.write('<TABLE background="images/bg_trans.gif" cellpadding=0 cellspacing=0 border=0><TR><td width=10><img src="images/bg_trans.gif" height=1 width=10></td><TD><img src="images/off.gif" name="'+arrownumber+'"width=10 height=10></TD><TD><span class=businesstypename><a href="javascript:if (BType != '+choicenumber+' && BType != 0) {img_inact(BType)}; setBusiness('+choicenumber+'); img_act('+choicenumber+'); setRight('+choicenumber+')" onmouseover="if (BType == 0) {img_act('+choicenumber+')}" onmouseout="if (BType != '+choicenumber+'){img_inact('+choicenumber+')}">'+choicename+'</A></A><BR></TD></TR></TABLE>')}
}
//Style Selections
function styleBlock(imagesrc,imagename,num) {
if (document.all) {document.write('<table background="" cellpadding=8><tr><td><img src="images/bg_trans.gif" width=25></td><td><DIV ALIGN="CENTER" ID="type'+num+'" STYLE="Z-Index:5;cursor:hand"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD BORDERCOLOR="white" ONCLICK="if (XChoice != 0 && XChoice != '+num+') {unmarkSelection(Ximg,XChoice)}; setChoice('+num+',\''+imagesrc+'\'); className=\'menuStyleSelected\'" onmouseover="if (XChoice != '+num+') {className=\'menuStyle\'}" onMouseout="if (XChoice != '+num+') {className=\'menu\'}"><img src="images/'+imagesrc+'" width=100 height=75 hspace=3 vspace=3></TD></TR></TABLE></DIV></td><td width=150><font class=stylename>'+imagename+'</FONT></td></tr></table>')}
else if (document.layers){document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="2"><TR><TD><table background="" cellpadding=8><tr><td><img src="images/bg_trans.gif" width=25></td><td><ILAYER id="otype'+num+'"><LAYER id="type'+num+'" onmouseover="if (XChoice != '+num+') {bgColor=\'cccccc\'}" onmouseout="if (XChoice != '+num+') {bgColor=\'white\'}"><A HREF="javascript:if (XChoice != 0 && XChoice != '+num+') {unmarkSelection(Ximg,XChoice)}; setChoice('+num+',\''+imagesrc+'\')" class=menulinks><img src="images/'+imagesrc+'" width=100 height=75 hspace=3 vspace=3 border=0></A></CENTER></LAYER></ILAYER></td><td width=150><font class=stylename>'+imagename+'</FONT></td></tr></table></TD></TR></TABLE>')}
}
//Set New Choice Unselect Previous Choice
function setChoice(num,imagesrc) {
XChoice = num;
Ximg = imagesrc;
parent.bottom.document.whichpages.STYLESELECTION.value = num;
}
function unmarkSelection(imagesrc,num) {
var oldselection = "type" + num;
var oldselection2 = "otype" + num;
if (document.all) {document.all[oldselection].innerHTML = ('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD BORDERCOLOR="white" ONCLICK="if (XChoice != 0 && XChoice != '+num+') {unmarkSelection(Ximg,XChoice)}; setChoice('+num+',\''+imagesrc+'\'); className=\'menuStyleSelected\'" onmouseover="if (XChoice != '+num+') {className=\'menuStyle\'}" onMouseout="if (XChoice != '+num+') {className=\'menu\'}"><img src="images/'+imagesrc+'" width=100 height=75 hspace=3 vspace=3></TD></TR></TABLE>')}
else if (document.layers){
document.layers[oldselection2].layers[oldselection].document.open();
document.layers[oldselection2].layers[oldselection].document.write('<LAYER bgColor=ffffff id="type'+num+'" onmouseover="if (XChoice != '+num+') {bgColor=\'cccccc\'}" onmouseout="if (XChoice != '+num+') {bgColor=\'white\'}"><A HREF="javascript:if (XChoice != 0 && XChoice != '+num+') {unmarkSelection(Ximg,XChoice)}; setChoice('+num+',\''+imagesrc+'\')" class=menulinks><img src="images/'+imagesrc+'" width=100 height=75 hspace=3 vspace=3 border=0></A></CENTER></LAYER>');
document.layers[oldselection2].layers[oldselection].document.close();
}
}